/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package GUI;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

/**
 *
 * @author Dopsilon
 */
class TableListener implements ActionListener {
    private GUImain GUI;
    public TableListener(GUImain GUI) {
        this.GUI = GUI;
        
    }

    @Override
    public void actionPerformed(ActionEvent e) {
        switch (e.getActionCommand()) {
            case "newTable":
                this.GUI.buildOfferTable();
                break;
            case "quit":
                this.GUI.quit();
                break;
        }
        
        
    }
    
}
